Chris Pollett > Old Classes >
CS174

( Print View )

Student Corner:
  [Grades Sec1]

  [Submit Sec1]

  [Class Sign Up Sec1]

  [
Lecture Notes]
  [Discussion Board]

Course Info:
  [Texts & Links]
  [Topics/Outcomes]
  [Outcomes Matrix]
  [Grading]
  [HW Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Additional Policies]
  [Announcements]

HWs and Quizzes:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5][Quizzes]

Practice Exams:
  [Mid1]  [Final]

                           












HW#1 --- last modified February 17 2019 19:28:25..

Solution set.

Due date: Sep 13

Files to be submitted:
  Hw1.zip

Purpose: To install Apache. To experiment with the HTTP protocol. To write our first XHTML 1.1 validating web page

Related Course Outcomes:

The main course outcomes covered by this assignment are:

(1) [Write HTML documents containing standard HTML elements including forms, tables, client-side scripts, and server-side scripts.]

Specification:

All files that you make for Hw1 should be zipped together into the file Hw1.zip and submitted.

For the first part of the assignment, I want you to install Apache, PHP, and Mysql on your laptop and configure it so I can see each of these things is running. If you decide (as I suggest) to install Xampp to get this running, then I will test that your installation is working by going to the phpMyAdmin page. Demoing this to me either at the start of class or before I give out grades for this homework is worth 1/2 a point. In addition to installing these programs it is useful for this class to have a simple text editor which can be configured to display whitespace characters such as spaces, tabs, end-of-lines, as well as be able to indicate if the line is longer than 80 characters. The open-source editor gedit is available on Windows, Mac, and Linux and can do this. Also, for future homeworks I might get you to use git for version control, so it wouldn't hurt to try to install it early.

For the second part of this homework I want you to experiment with using HTTP. For this part of the assignment, I want you to put two files into Hw1.zip, experiment-transcript.txt and experiment-results.txt: the former has, in your own words, in English, a description of what you did, the latter has actual text-captures of your experiments. The first experiment I want you to try to do is to download the nsf.gov/robots.txt using telnet from a command line shell (on Windows you might need to configure the command shell to be able to see the text you are typing and responses when you do telnet by using set localecho on). Try doing an HTTP/1.0 and an HTTP/1.1 request for this document. What robots besides the GoogleBot are allowed to crawl nsf.gov? Please note when you did your experiment as the answer is affected by the time. Next I want you to make HTTP/1.0 and HTTP/1.1 requests of the facebook.com homepage. Please note any typos on Facebook's page in your write-up.

For the last part of the assignment I want you to write a validating XHTML 1.1 document, product.html. This page should describe a household wonder product of the future. Try to use prose at least as fancy as a late night infomercial. You should code the HTML in this page by hand. Use a simple text editor to create the page. There should be no tabs characters, indentation should be four spaces, and each line should be at most 80 characters. You will receive a zero on this part of the assignment if there is code created by an HTML Editor such as Front Page, Dreamweaver or the like. Your page should have a reasonable <head> section with a title, as well as meta tags telling robots not to index your page or follow symlinks. Your description should have table comparing your product to an existing product. Your page should make use of an unordered list (ul and li tags) to describe three miraculous uses for your product. product.php should constructively make use of a, img, link (to include a favicon), and span (use it for a tooltip) tags. Be careful with image sizes, as you can only upload 2Mb. Also, please use your own images or ones which can be argued are in the public domain rather than use copyrighted ones. Be fun and creative!

To validate your page use the site: http://validator.w3.org/

Point Breakdown

Demo of running Apache with PHP on your laptop 1/2 pt
Experiments (1/4pt for HTTP/1.0, 1/4pt for HTTP/1.1 request for nsf.gov/robots.txt; same for facebook.com). Write-up and answers to questions 1/2pt. 1.5 pts
Page validates as XHTML (1/2pt) and whitespace and line length as described (1/2pt) 1pt
Page head has a title and meta tags as described above, tables are used on the page 1pt
Page constructively uses a, img, link, ul, and span tags. (1 point each) 6pts
Total10pts